package com.free.food.core.exception;


import com.free.food.core.enums.ResultEnum;

/**
 * 类功能描述：
 *
 * @author：刘富国
 * @createTime：2019/2/14 13:38
 */
public class OrderException extends RuntimeException {
    private Integer code;

    public OrderException(Integer code, String message) {
        super(message);
        this.code = code;
    }

    public OrderException(ResultEnum resultEnum) {
        super(resultEnum.getMsg());
        this.code = resultEnum.getCode();
    }
}
